package com.wisdytech.linkdcs.measuretool.model;

import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 
 * </p>
 *
 * @author zhanghailin
 * @since 2018-06-19
 */
@TableName("TT_EQ_MEASURE_RECORD")
public class MeasureRecord extends Model<MeasureRecord> {

    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    @TableId("PK_ID")
    private String pkId;
    /**
     * 计量器具编码
     */
    @TableField("MEASURE_TOOL_CODE")
    private String measureToolCode;
    /**
     * 检测部位
     */
    @TableField("DETECTION_SITE")
    private String detectionSite;
    /**
     * 温度
     */
    @TableField("TEMPERATURE")
    private String temperature;
    /**
     * 湿度
     */
    @TableField("HUMIDITY")
    private String humidity;
    /**
     * 标准件名称
     */
    @TableField("STANDARD_NAME")
    private String standardName;
    /**
     * 标准件编码
     */
    @TableField("STANDARD_CODE")
    private String standardCode;
    /**
     * 标准件证书编号
     */
    @TableField("STANDARD_CERT")
    private String standardCert;
    /**
     * 校验人
     */
    @TableField("CHECK_USER")
    private String checkUser;
    /**
     * 校验时间
     */
    @TableField("CHECK_DATE")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss" , timezone = "GMT+8")
    private Date checkDate;
    /**
     * 确认人
     */
    @TableField("CONFIRM_USER")
    private String confirmUser;
    /**
     * 确认时间
     */
    @TableField("CONFIRM_DATE")
    private Date confirmDate;
    @TableField("DEL_FLAG")
    private String delFlag;
    @TableField("CREATE_USER")
    private String createUser;
    @TableField("CREATE_DATE")
    private Date createDate;
    @TableField("UPDATE_USER")
    private String updateUser;
    @TableField("UPDATE_DATE")
    private Date updateDate;
    @TableField("REMARK")
    private String remark;
    /**
     * 设备编码
     */
    @TableField("EQUIP_CODE")
    private String equipCode;


    public String getPkId() {
        return pkId;
    }

    public void setPkId(String pkId) {
        this.pkId = pkId;
    }

    public String getMeasureToolCode() {
        return measureToolCode;
    }

    public void setMeasureToolCode(String measureToolCode) {
        this.measureToolCode = measureToolCode;
    }

    public String getDetectionSite() {
        return detectionSite;
    }

    public void setDetectionSite(String detectionSite) {
        this.detectionSite = detectionSite;
    }

    public String getTemperature() {
        return temperature;
    }

    public void setTemperature(String temperature) {
        this.temperature = temperature;
    }

    public String getHumidity() {
        return humidity;
    }

    public void setHumidity(String humidity) {
        this.humidity = humidity;
    }

    public String getStandardName() {
        return standardName;
    }

    public void setStandardName(String standardName) {
        this.standardName = standardName;
    }

    public String getStandardCode() {
        return standardCode;
    }

    public void setStandardCode(String standardCode) {
        this.standardCode = standardCode;
    }

    public String getStandardCert() {
        return standardCert;
    }

    public void setStandardCert(String standardCert) {
        this.standardCert = standardCert;
    }

    public String getCheckUser() {
        return checkUser;
    }

    public void setCheckUser(String checkUser) {
        this.checkUser = checkUser;
    }

    public Date getCheckDate() {
        return checkDate;
    }

    public void setCheckDate(Date checkDate) {
        this.checkDate = checkDate;
    }

    public String getConfirmUser() {
        return confirmUser;
    }

    public void setConfirmUser(String confirmUser) {
        this.confirmUser = confirmUser;
    }

    public Date getConfirmDate() {
        return confirmDate;
    }

    public void setConfirmDate(Date confirmDate) {
        this.confirmDate = confirmDate;
    }

    public String getDelFlag() {
        return delFlag;
    }

    public void setDelFlag(String delFlag) {
        this.delFlag = delFlag;
    }

    public String getCreateUser() {
        return createUser;
    }

    public void setCreateUser(String createUser) {
        this.createUser = createUser;
    }

    public Date getCreateDate() {
        return createDate;
    }

    public void setCreateDate(Date createDate) {
        this.createDate = createDate;
    }

    public String getUpdateUser() {
        return updateUser;
    }

    public void setUpdateUser(String updateUser) {
        this.updateUser = updateUser;
    }

    public Date getUpdateDate() {
        return updateDate;
    }

    public void setUpdateDate(Date updateDate) {
        this.updateDate = updateDate;
    }

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }

    public String getEquipCode() {
        return equipCode;
    }

    public void setEquipCode(String equipCode) {
        this.equipCode = equipCode;
    }

    @Override
    protected Serializable pkVal() {
        return this.pkId;
    }

    @Override
    public String toString() {
        return "MeasureRecord{" +
        ", pkId=" + pkId +
        ", measureToolCode=" + measureToolCode +
        ", detectionSite=" + detectionSite +
        ", temperature=" + temperature +
        ", humidity=" + humidity +
        ", standardName=" + standardName +
        ", standardCode=" + standardCode +
        ", standardCert=" + standardCert +
        ", checkUser=" + checkUser +
        ", checkDate=" + checkDate +
        ", confirmUser=" + confirmUser +
        ", confirmDate=" + confirmDate +
        ", delFlag=" + delFlag +
        ", createUser=" + createUser +
        ", createDate=" + createDate +
        ", updateUser=" + updateUser +
        ", updateDate=" + updateDate +
        ", remark=" + remark +
        ", equipCode=" + equipCode +
        "}";
    }
}
